﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!--头部-->
<div id="Header" class="ajaxLoadDiv">
    @{Html.RenderAction("Top");}
</div>

<div class="g-wrap">
    <!--左边-->
    <div id="Left" class="ajaxLoadDiv" name="leftnav01">
        @{ Html.RenderPartial("Left");}
    </div>
    <div class="g-main">
        <!--面包屑start-->
        <div class="mod_navbar f-clear">
            <div class="title">
                <h3><i class="icon-dashboard mr_10"></i>工作台</h3>
            </div>
            <div class="main">
                <div class="f-right">
                    <ul class="tabs worktab">
                        <li> <a href="javascript:;" id="my_task" class="cur">我的任务</a> </li>
                    </ul>
                </div>
            </div>
        </div>
        <!--面包屑end-->
        <div class="main-content">
            <!--中间左start-->
            <div class="center-panel">
                <div class="center-panel-inner">
                    <dl class="frame">
                     
                        <!--我的任务start-->
                        <div class="box-panel-body mytasklist worktabcon">
                            <dt class="frame-dt">
                                <span class="title">我的任务</span>
                                <ul class="tabs tasktab">
                                    <li model="unreceived"> <a href="javascript:;" class="cur">待接收</a> </li>
                                    <li model="uncompleted"> <a href="javascript:;" >待完成</a> </li>
                                    <li model="expired"> <a href="javascript:;">已过期</a> </li>
                                    <li model="completed"> <a href="javascript:;">已完成</a> </li>
                                </ul>
                            </dt>
                            <div class="part-loading mt_20" id="taskload"></div>
                            <div class="mytask" id="unreceived">

                            </div>
                            <div class="mytask" id="uncompleted">

                            </div>
                            <div class="mytask f-hide" id="expired">

                            </div>
                            <div class="mytask f-hide" id="completed">

                            </div>
                        </div>
                        <!--我的任务end-->

                    </dl>
                </div>
            </div>
            <!--中间左end-->
            <!--中间右start-->
            <div class="right-panel">
                <!--任务情况数量start-->
                <div class="box-panel my-tasks-overview">
                    <div class="box-panel-header hello-body">
                       
                    </div>
                    <div class="box-panel-body">
                        <ul class="tasktab2">
                            <li class="tasks-unreceived">
                                <a href="javascript:change_top_tab('unreceived');">
                                    @*<span class="count ng-hide"> <i class="icon-refresh"></i> </span>*@
                                    <span class="count ng-binding"> @ViewBag.count[3]</span>
                                    <span class="text">待接收</span>
                                </a>
                            </li>
                            <li class="tasks-uncompleted">
                                <a href="javascript:change_top_tab('uncompleted');">
                                    @*<span class="count ng-hide"> <i class="icon-refresh"></i> </span>*@
                                    <span class="count ng-binding"> @ViewBag.count[1]</span>
                                    <span class="text">待完成任务</span>
                                </a>
                            </li>
                            <li class="tasks-expired">
                                <a href="javascript:;">
                                    @*<span class="count ng-hide"> <i class="icon-refresh"></i> </span>*@
                                    <span class="count ng-binding">@ViewBag.count[2]</span>
                                    <span class="text">过期任务</span>
                                </a>
                            </li>
                            <li class="tasks-completed noborder">
                                <a href="javascript:;">
                                    @*<span class="count ng-hide"> <i class="icon-refresh"></i> </span>*@
                                    <span class="count ng-binding">@ViewBag.count[0]</span>
                                    <span class="text">已完成任务</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!--任务情况数量end-->
                <!--今天日程start-->
                <div class="box-panel today-event">
                    <div class="box-panel-header">
                        <h4><i class="icon-calendar-empty mr_10"></i>今天日程</h4>
                    </div>
                    <div class="box-panel-body">
                        <div class="part-loading"></div>
                        <div class="empty-panel min-height noborder">
                            <i class="icon-calendar-empty"></i> <br>
                            <span>今天没有日程安排</span>
                        </div>
                        <ul>
                           
                        </ul>
                    </div>
                </div>
                <!--今天日程end--> 
            </div>
            <!--中间右end-->
        </div>
    </div>
</div>


<!--任务右侧弹出层-->
<div class="slide-content" style="overflow: hidden; right: 0px; top: 60px; width: 700px; display: none;">
    <div class="entity-panel task-panel">
        <div class="entity-panel-wrapper">
            <!--弹出层头-->
            <div class="entity-panel-header">
                <a href="javascript:;" class="name ng-binding"> <i class="mr_10 icon-desktop" style="color: rgb(56, 168, 170);"></i> <emid id="spKind"></emid> </a>
                <ul class="nav nav-pills">                  
                    <li class="divider-v"></li>
                    <li> <a href="javascript:;" title="关闭"> <i class="icon-remove"></i> </a> </li>
                </ul>
            </div>
            <!--弹出层内容-->
            <div class="entity-panel-body height-nonav" style="overflow: hidden; height: 786px;">
                <!--左侧内容-->
                <div class="content-panel" taskid="">
                    <div class="content-module editable-module">
                        <!--名称-->
                        <div class="taskname">
                            <div class="entity-title">
                                <a class="task_check"> <i class="icon-check-empty"></i> </a>
                                <h2 class="ng-binding">
                                    <span class="ng-binding" id="spTitle"></span>
                                    <em class="ng-binding"></em>
                                </h2>
                            </div>
                            <div class="task-badges" task="task"></div>
                            <div class="task-desc-add ng-hide">
                                <a href="javascript:;" id="aTips">点击添加任务描述</a>
                            </div>
                            <div class="task-desc">
                                <div class="task-desc-text markdown ng-binding" id="divDesc">

                                </div>
                            </div>
                        </div>
                        <!--编辑-->
                        <div class="f-hide taskedit">
                            <div class="edit-section">
                                <input type="text" placeholder="任务名称" class="form-control" id="txtTaskTitle" />
                                <textarea type="text" placeholder="添加任务描述" class="form-control gollum-editor-body" id="txtTaskDesc"></textarea>
                            </div>
                            <div class="form-group">
                                <button type="button" class="btn btn-success mr_15" id="btnSave2">保存 </button>
                                <button type="button" class="btn btn-success mr_15" id="btnCancelTitle">取消</button>
                            </div>
                        </div>
                        <!--评论活动-->
                        <div class="tabbable">
                            <ul class="tabs nav-tabs f-clear commenttab">
                                <li class="active"> <a>评论</a> </li>
                                <li class=""> <a>活动</a> </li>
                            </ul>
                            <div class="tab-content">
                                <!--评论-->
                                <div class="tab-pane active commentcon" style="max-height: 430px;">
                                    <div class="comment-list">
                                        <div class="part-loading mt_20"></div>
                                        <ul class="comments"></ul>
                                        <div class="new-comment">
                                            <a class="new-comment-avatar avatar avatar-40" size="40" title="@ViewBag.UserName" href="javascript:;"> <span class="avatar-face"><span class="avatar-text">@ViewBag.Avatar</span></span> </a>
                                            <div class="new-comment-edit">
                                                <textarea placeholder="说点什么" class="ng-pristine ng-valid" id="txtContent"></textarea>
                                                <div class="add-controls">                                                
                                                    <button class="btn btn-success pull-right ng-binding" id="btnFeedBack">发表评论 </button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--活动-->
                                <div class="tab-pane commentcon f-hide" style="max-height: 430px;">
                                    <div class="empty-panel">
                                        <i class="icon-time"></i><br>
                                        <span>还没有任何活动</span>
                                    </div>
                                    <div class="loading-more-panel">
                                        <div class="part-loading ng-hide"> </div>
                                        <button class="btn ng-hide"> 加载更多... </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--右侧内容-->
                <div class="sidebar-panel" style="min-height: 785px;">
                    <div class="sidebar-module">
                        <h4>标签</h4>
                        <div class="task-labels">
                            <button class="btn btn-block js-popbox ng-scope"><i class="icon-tag"></i>设置标签 </button>
                        </div>
                    </div>
                    <div class="sidebar-module">
                        <h4>分配</h4>
                        <div class="entity-members">
                            <ul>
                                <li class="removememberbtn">
                                    <a class="js-popbox avatar avatar-40" title="梅郑冬" href="javascript:;">
                                        <span class="avatar-face"><span class="avatar-text">梅</span></span>
                                    </a>
                                </li>
                                <li class="assignmenttaskbtn"> <a class="avatar-add js-popbox" href="javascript:;"> <span class="o"> <i class="icon-plus"></i> </span> </a> </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--分配任务-->
<div class="popbox assignmenttask" style="display: none; left: auto; right:160px; top: 184px;">
    <div class="popbox-header">
        <button class="cancel icon-remove"></button>
        <h3 class="ng-binding">分配任务</h3>
    </div>
    <div class="popbox-body">
        <input type="text" id="userkey" autofocus wt-focus="" name="search_user_input" placeholder="搜索成员" class="form-control help-block ng-pristine ng-valid">
        <div>双击添加人员</div>
        <br>
        <div class="part-loading"></div>

        <ul class="popbox-menu" id="userlist"></ul>
    </div>
</div>

<!--从任务移除-->
<div class="popbox removemembers" style="display: none; left: auto; right:180px; top:220px;">
    <div class="popbox-avatar">
        <div class="avatar-body">
            <button class="cancel icon-remove"></button>
            <a class="avatar avatar-56" size="56" title="梅郑冬" href="javascript:;"> <span class="avatar-face"><span class="avatar-text">梅</span></span> </a>
            <div class="avatar-right">
                <h4 class="avatar-heading ng-binding">梅郑冬</h4>
                <p class="ng-binding">meizdlive</p>
            </div>
        </div>
        <div class="avatar-footer">
            <button class="btn btn-danger ng-binding">从任务移除</button>
        </div>
    </div>
</div>

<script type="text/javascript" src="/Content/Js/common.js"></script>
<script src="~/Scripts/rg-utility.js"></script>
<script src="~/Scripts/Juicer/src/juicer.js"></script>
<script src="~/Models/home/taskComon.js"></script>
<script type="text/javascript" src="/Content/Dashboard/homeIndex.js"></script>